package com.cn.delan.core.util;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;

public class IOUtil {
	
	public static void main(String []args) throws IOException{
		long curtime = System.currentTimeMillis();
		RandomAccessFile rf = new RandomAccessFile("d:/我的工具B.iso","rw");
		long len = rf.length();
		rf.seek(len-120000);
		byte b[] = new byte[1024];
		int l;
		while((l=rf.read(b))!=-1){
			System.out.write(b,0,l);
		}
		System.out.println();
		System.out.println("file length:"+len);
		System.out.println("space time:"+(System.currentTimeMillis()-curtime));
	}

}
